package xaj.scc.ast;

import polyglot.ext.jl.ast.Node_c;
import polyglot.util.CodeWriter;
import polyglot.util.Position;
import polyglot.visit.PrettyPrinter;

public class StringFactor_c extends Node_c implements StringFactor {

	private String value;
	
	public StringFactor_c(Position pos, String value) {
		super(pos);
		this.value = value;
	}

	public String getString() {
		return value;
	}

	public StringFactor setString(String value) {
		StringFactor_c n = (StringFactor_c) copy();
		n.value = value;
		return n;
	}

	public void prettyPrint(CodeWriter w, PrettyPrinter tr) {
		w.write("\"" + value + " \"");
	}

	@Override
	public void accept(Visitor v) {
		v.visitStringFactor(this);
		
	}
}
